<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="Bookmark" href="../imgs/bai.ico">
    <link rel="Shortcut Icon" href="../imgs/bai.ico"/>
    <link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css"/>
    <title>后台管理</title>
    <style type="text/css">
        select { padding: 5px; border: 1px solid #ddd; }
    </style>
</head>
<body>
<!--顶部-->
<header class="navbar-wrapper"></header>
<!--左侧菜单-->
<aside class="Hui-aside">
    <div class="menu_dropdown bk_2" id="leftMenu"></div>
</aside>

<!--右侧内容框架-->
<section class="Hui-article-box">
    <nav class="breadcrumb">
        <a href="../index.html" class="maincolor">
            <i class="Hui-iconfont">&#xe67f;</i>
        </a>
        <span class="c-gray en">&gt;</span> <span id="crumb_pname"></span>
        <span class="c-gray en">&gt;</span> <span id="crumb_name"></span>
    </nav>
    <div class="Hui-article">
        <article class="cl pd-20">
            <div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l">
                    <select id="depart_id" onchange="toJump();">
                        <option value="">-选择-</option>
                    </select>
                    <select id="staff_id" onchange="toJump();">
                        <option value="">-选择-</option>
                    </select>
                    <select id="year_id" style="width: 60px;" onchange="toJump();">
                        <option value="0">选择</option>
                    </select> 年
                    <select id="month_id" style="width: 60px;" onchange="toJump();">
                        <option value="">选择</option>
                    </select> 月
                    <!-- <select id="sort_id" onchange="getList();"> -->
                    <select id="sort_id" onchange="toJump();">
                        <option value="1">按时间正序</option>
                        <option value="2" selected>按日期倒序</option>
                    </select>
				</span>
                <span class="r">共有数据：<strong id="pageTotal">0</strong> 条</span>
            </div>
            <div class="mt-20">
                <table class="table table-border table-bordered table-hover table-bg table-sort">
                    <thead>
                    <tr class="text-c">
                        <th>序号</th>
                        <!-- <th>录入日期</th> -->
                        <th>部门名称</th>
                        <th>项目名称</th>
                        <th>工时名称</th>
                        <th>合计时长</th>
                    </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
                <div id="pageHtml"></div>
            </div>
        </article>
    </div>
</section>

<!-- msg弹窗 -->
<span id="msgPop"></span>
</body>
</html>


<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="../static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript" src="../js/view.js"></script>
<script type="text/javascript" src="../lib/hcharts/Highcharts/5.0.6/js/highcharts.js"></script>
<script type="text/javascript" src="../lib/hcharts/Highcharts/5.0.6/js/modules/exporting.js"></script>
<script type="text/javascript" src="../js/yw-tji/item.js"></script>
<script type="text/javascript">
    var formList = [];
    var pages = {
        start: 1, limit: pageSize,
        url: '/admin/yw-tji/item.html'
    };
    var type = 1;
    var depart_id = getParamByUrl('depart_id');
    var staff_id = getParamByUrl('staff_id');
    var year_id = getParamByUrl('year_id');
    var month_id = getParamByUrl('month_id');
    var sort_id = getParamByUrl('sort_id');
    sort_id = sort_id ? sort_id : 2;
    depart_id = depart_id ? depart_id : 0;
    if (year_id == '' || year_id == 0) {
        year_id = new Date().getFullYear();
    }
    if (month_id == '' || month_id == 0) {
        month_id = new Date().getMonth() + 1;
        month_id = month_id.length==1 ? '0'+month_id : month_id;
    }
    (function () {
        getOption();
        getList();
    })();
</script>